package com.gtw.modules.base.service.impl;

import com.gtw.modules.base.service.TbProvinecService;
import com.gtw.modules.dao.TbProvinecDao;
import com.gtw.modules.entity.TbProvinec;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/** 省份接口实现类
 * Created by wuye on 2018/1/26.
 */
@Service
public class TbProvinecServiceImpl implements TbProvinecService {

    @Autowired
    private TbProvinecDao tbProvinecDao;

    /**
     * 查询所有省份
     * @return
     */
    @Override
    public List<TbProvinec> findAll() {
        return tbProvinecDao.findAll();
    }

    @Override
    public TbProvinec queryObject(Integer id) {
        return tbProvinecDao.selectByPrimaryKey(id);
    }
}
